/**
 * 求职简历接口
 *
 * @date 2021-08-03
 * @author 逗号米
 */

import http from '@/api'

/**
 * 前缀
 *
 * @type {string}
 */
const prefix = `${http}/cms/personal/resume`


/**
 * 首页
 *
 * @type {string}
 */
export const index: string = `${prefix}`

/**
 * 查询
 *
 * @return {string}
 */
export const query: string = `${prefix}/query`

/**
 * 存储
 *
 * @type {string}
 */
export const store: string = `${prefix}`

/**
 * 显示
 *
 * @param {number} id
 * @return {string}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 更新
 *
 * @param id
 * @return {string}
 */
export const update = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param {int} id
 * @return {string}
 */
export const destroy = (id: number): string => `${prefix}/${id}`

/**
 * 审核
 *
 * @type {string}
 */
export const auditResume: string = `${prefix}/audit-resume`

/**
 * 审核头像
 *
 * @type {string}
 */
export const auditAvatar: string = `${prefix}/audit-avatar`

/**
 * 更新头像
 *
 * @param {int} id
 * @return {string}
 */
export const updateAvatar = (id: number): string => `${prefix}/update/avatar/${id}`

/**
 * 删除头像
 *
 * @param {int} id
 * @return {string}
 */
export const deleteAvatar = (id: number): string => `${prefix}/delete/avatar/${id}`
/**
 * 更新基本信息
 *
 * @param {int} id
 * @return {string}
 */
export const updateBasic = (id: number): string => `${prefix}/update/basic/${id}`

/**
 * 更新求职意向
 *
 * @param {int} id
 * @return {string}
 */
export const updateJobIntention = (id: number): string => `${prefix}/update/job-intention/${id}`

/**
 * 更新自我介绍
 *
 * @param {int} id
 * @return {string}
 */
export const updateIntroduction = (id: number): string => `${prefix}/update/introduction/${id}`
